home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 May / Pcwk5b99.iso / Demo Software / RayDream Studio Demo / STUDIO.Z / cfrml.DTA / STR#_32335.txt < prev    next >
Text File  |  1997-12-12  |  462b  |  35 lines

  1. u=(t-tmin)/(tmax-tmin);
  2. value=(1+sin(8*PI*p1*u+PI*p2))/2;
  3.  
  4. a=2*x+PI/2;
  5. b=2*y+2*PI*p1;
  6. c=2*z+2*PI*p2;
  7. red=(1+sin(a))/2;
  8. green=(1+sin(b))/2;
  9. blue=(1+sin(c))/2;
  10.  
  11. x=20*(u-0.5);
  12. y=20*(v-0.5);
  13. r=(x*x+y*y)/8;
  14. z=(1+p2)*6*cos(r+p1*PI)/(1+r);
  15.  
  16. red=(1+sin(2*PI*(u+p1)))/2;
  17. green=v;
  18.  
  19. dx=-x;
  20. dy=-y;
  21. dz=-z;
  22.  
  23. red=(1+x)/2;
  24. green=(1+y)/2;
  25. blue=(1+z)/2;
  26.  
  27. nu=u*(abs(p1)*29+1);
  28. nv=v*(abs(p2)*29+1);
  29. a=nu-floor(nu);
  30. b=nv-floor(nv);
  31. red=(a>0.5);
  32. green=(a>0.5)*(b>0.5);
  33. blue=(b>0.5);
  34.  
  35.